package it.ap.sa.core.utils;

import java.util.Collection;

/**
 * @author Alessandro Paolillo
 */
public abstract class ListUtils {
	
	/**
	 * @author Alessandro Paolillo
	 */
	public static boolean listIsNotEmpty(Collection<?> list){
		return list != null && list.isEmpty() == false;
	}
	/**
	 * @author Alessandro Paolillo
	 */
	public static boolean listIsEmpty(Collection<?> list){
		return listIsNotEmpty(list) == false;
	}
	/**
	 * @author Alessandro Paolillo
	 */
	public static int sizeList(Collection<?> list){
		return listIsNotEmpty(list) ? list.size() : 0;
	}

}
